package com.study.ktandroid.sometest

import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import com.study.ktandroid.R

/**
 * <pre>
 *     author : slx
 *     time   : 2021/03/09
 *     desc   :
 * </pre>
 */
class SomeTestActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_some_test)
        val fragment = SomeTestFragment()
        fragment.arguments = Bundle().apply {
            putString("name","slx")
        }
        supportFragmentManager.beginTransaction().replace(R.id.flContent, fragment)
                .commit()
    }
}